import template from 'babel-template'
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
  state:{
    //点击了 哪一个
    clickWhich:'1',
    data:{
      "name":'liang',
      "age":'18',
    }
  },
  mutations:{
    // 修改
    amendCliskwhich(state,value){
      state.clickWhich = value;
    },
    amendData(state,name1,age1){
      state.data.name = name1;
      state.data.age = age1;
    }
  }







  
})

export default store